# 01. policies select the dataplane without collisions
type: MeshTrafficPermission
mesh: mesh-1
name: mtp-1
spec:
  targetRef:
    kind: MeshServiceSubset
    name: web
    tags:
      version: v1
  from:
    - targetRef:
        kind: Mesh
      default:
        action: Allow
---
type: MeshTrafficPermission
mesh: mesh-1
name: mtp-2
spec:
  targetRef:
    kind: Mesh
  from:
    - targetRef:
        kind: Mesh
      default:
        action: Allow
---
type: MeshTrafficPermission
mesh: mesh-1
name: mtp-3
spec:
  targetRef:
    kind: MeshService
    name: web
  from:
    - targetRef:
        kind: Mesh
      default:
        action: Allow
---
type: MeshTrafficPermission
mesh: mesh-1
name: mtp-4
spec:
  targetRef:
    kind: MeshSubset
    tags:
      version: v1
  from:
    - targetRef:
        kind: Mesh
      default:
        action: Allow
---
type: MeshTrafficPermission
mesh: mesh-1
name: mtp-5
spec:
  targetRef:
    kind: MeshService
    name: backend
  from:
    - targetRef:
        kind: Mesh
      default:
        action: Allow
---
type: MeshTrafficPermission
mesh: mesh-1
name: mtp-6
spec:
  targetRef:
    kind: MeshServiceSubset
    name: web
    tags:
      version: v2
  from:
    - targetRef:
        kind: Mesh
      default:
        action: Allow
---
type: MeshTrafficPermission
mesh: mesh-1
name: mtp-7
spec:
  targetRef:
    kind: MeshServiceSubset
    name: web
    tags:
      env: dev
  from:
    - targetRef:
        kind: Mesh
      default:
        action: Allow
